import { arrayToObject } from "@utils/arrayHelper";

export const PAYMENT_WECHAT_STATUS_LIST =  [
    {
        id: 0,
        name: '未提交'
    },
    {
        id: 1,
        name: '资料校验中'
    }, {
        id: 2,
        name: '待账户验证'
    }, {
        id: 3,
        name: '审核中'
    }, {
        id: 4,
        name: '已驳回'
    }, {
        id: 5,
        name: '待商户签约'
    }, {
        id: 6,
        name: '生效中'
    }, {
        id: 7,
        name: '已冻结'
    }, {
        id: 8,
        name: '待激活'
    }
]

export const PAYMENT_WECHAT_STATUS = arrayToObject(PAYMENT_WECHAT_STATUS_LIST, 'id', 'name')

export const PAYMENT_ALIPAY_STATUS_LIST =  [
    {
        id: 0,
        name: '待开通'
    },
    {
        id: 1,
        name: '未签约'
    }, {
        id: 2,
        name: '已生效'
    }, {
        id: 3,
        name: '受限生效'
    }, {
        id: 4,
        name: '审核中'
    }, {
        id: 5,
        name: '待商户确认协议'
    }, {
        id: 6,
        name: '审核未通过'
    }, {
        id: 7,
        name: '合约失效'
    }, {
        id: 8,
        name: '受限失效'
    }
]

export const PAYMENT_ALIPAY_STATUS = arrayToObject(PAYMENT_ALIPAY_STATUS_LIST, 'id', 'name')

export const PAYMENT_GLOBAL_CONFIG_LIST = [
    {
        id: 0,
        name: '统一由品牌配置'
    },
    {
        id: 1,
        name: '入驻店铺自行配置'
    }, {
        id: 2,
        name: '部分店铺可自行配置'
    }
]
export const PAYMENT_GLOBAL_CONFIG = arrayToObject(PAYMENT_GLOBAL_CONFIG_LIST, 'id', 'name')
